package org.dromara.germbank.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import lombok.RequiredArgsConstructor;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.web.core.BaseController;
import org.dromara.germbank.domain.bo.BusPartnerPartnerBo;
import org.dromara.germbank.domain.vo.BusPartnerPartnerVo;
import org.dromara.germbank.service.BusPartnerPartnerService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商业伙伴管理
 *
 * @author congxing
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/partners")
public class BusPartnerPartnerController extends BaseController {

    private final BusPartnerPartnerService busPartnerPartnerService;

    /**
     * 查询商业伙伴管理列表
     */

    @SaCheckPermission("partners:Partner:list")
    @GetMapping("/list")
    public TableDataInfo<BusPartnerPartnerVo> list(BusPartnerPartnerBo bo, PageQuery pageQuery) {
        return busPartnerPartnerService.queryPageList(bo,pageQuery);
    }
}
